public class MyStackTest {
    public static void main(String[] args) {
        MyStack myStack = new MyStack();

        System.out.println(myStack.size());

        System.out.println(myStack.isEmpty());   //true
        myStack.push(2);
        myStack.push("A");
        myStack.push("B");
        myStack.push("C");
        myStack.push("D");
        myStack.push("E");
        myStack.push("F");

        System.out.println(myStack.isEmpty());   //false
        System.out.println(myStack.size());
        System.out.println(myStack.pull());   //F(出栈，删除栈顶元素F)
        System.out.println(myStack.peek());   //E(现在的栈顶元素是E)
        System.out.println(myStack.size());   //6
        System.out.println(myStack.find("B"));
        System.out.println(myStack.find("AA"));



    }
}
